C (103/254)

From:Duane McDonnell
Date:04 Apr 00 at 01:02:54
Subject:Re: ObtainPen for my colors

>On 01-Apr-00, Duane McDonnell wrote:

>>> The proper way to save code is to multiply the 8 bit value with
0x01010101.
>>> Btw: 14x17 = 238, which was the maximum value generated by your loop...
>> Can you please describe this some more? I'm not sure what this is
>> intended to achieve.

>Well, the first (i * 0x01010101) gives you a 32 bit colour value with 0 as
>0x00000000 and 255 as 0xFFFFFFFF. The 'btw'-remark was in regard to your
first
>loop, which generated values from 0x17 to 14x17, i.e. colour values from 0 to
>238, not 0 to 255.

I didn't write the loop, someone else posted that. The message that you
were replying to still hasn't shown up here (the m/l has been acting
very strange lately) so I didn't see the full code. I was just curious
as to why you were multiplying by 0x01010101, I thought it might be a
new trick to add to my collection :-) But I gather from your explanation
that it was correcting an upper limit during interpolation.

------------------------------------------------------------------------
Get a NextCard Visa, in 30 seconds!
1. Fill in the brief application
2. Receive approval decision within 30 seconds
3. Get rates as low as 2.9% Intro or 9.9% Fixed APR
Apply NOW!
http://click.egroups.com/1/975/1/_/451227/_/954744029/
------------------------------------------------------------------------